package com.gitee.ywj1352.strategy.payport;

public enum PayType {
    ALI_PAY(new Alipay()),
    WECHAT_PAY(new WeChatPay()),
    UNION_PAY(new UnionPay());
    private Payment payment;

    PayType(Payment payment){
        this.payment = payment;
    }

    public Payment getPayment(){
        return this.payment;
    }

}
